import { localStg } from '@/utils';

/** 获取token */
export function getToken() {
  return localStg.get('token') || '';
}
export function getOpenid() {
  return localStg.get('openid') || '';
}
export function getCurrentCity() {
  return localStg.get('currentCity') || '南宁市';
}

// /** 获取用户信息 */
// export function getNurseUser() {
//   const emptyInfo: NurseUser.nurseUser = {

//   };
//   const nurseUser: NurseUser.nurseUser = emptyInfo || localStg.get('nurseUser');

//   return nurseUser;

// }

/** 去除用户相关缓存 */
export function clearAuthStorage() {
  localStg.remove('token');
  localStg.remove('nurseUser');
  localStg.remove('openid');
  localStg.remove('currentCity');
}
